var CONST = cc;
CONST.MSG = {};
CONST.PTOTO = {};
CONST.PTOTO["login"] = {};
CONST.MSG.LOGIN_REQ = 1001;
CONST.PTOTO["login"][CONST.MSG.LOGIN_REQ] = "login_req";
CONST.MSG.LOGIN_RES = 2001;
CONST.PTOTO["login"][CONST.MSG.LOGIN_RES] = "login_res";

CONST.MAX_RECONNECT_TIMES = 20;
CONST.RECONNECT_TIME = 1000;

CONST.SYS_MSG = {};
CONST.SYS_MSG.CONNECT = "_connect";
CONST.SYS_MSG.CLOSE = "_close";
CONST.SYS_MSG.RECONNECT = "_reconnect";
CONST.SYS_MSG.TIMEOUT = "_timeout";
CONST.SYS_MSG.ERROR = "_error";

CONST.readyState = {};
CONST.readyState.CONNECTING = 0;
CONST.readyState.OPEN = 1;
CONST.readyState.CLOSING = 2;
CONST.readyState.CLOSED = 3;